﻿#pragma once
#include <iostream>

class FatherA
{
public:
	FatherA() = default;
	~FatherA() = default;

	std::string name = "FatherA.";

	// 父类不能访问子类的protected成员
	//void ChildMoney() {
	//	std::cout << this->ChildMoney;
	//}

private:
	std::string money = "FatherA's money.";

protected:
	std::string legacy = "The legacy FatherA leave over.";
};

//FatherA::FatherA()
//{
//}
//
//FatherA::~FatherA()
//{
//}